<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>资讯-问答管理</title> 
<#include '/frame/version.html'> 
<#include '/frame/manage/include_css.html'> 
<#include '/frame/manage/include_js.html'> 
<#include '/frame/taglib.html'>
</head>
<body id="nv_member" class="pg_CURMODULE">
	<#assign current='menu_ques_type'>
	<div id="wp" class="wp">
		<#include "/include/header.html"/>
		<div class="contentmanage">
			<div class="developer">
				<div class="tableContent">
					<#include "/include/left.html"/> 
					<#include "/include/wxtop.html"/>

					<div class="content">
						<div class="cLineB">
				        <h4 class="left">
				        	资讯-问答管理
				        </h4>
				        <div class="clr">
				        </div>
				    </div>
						<div class="msgWrap">
							<div class="cLine">
								<div class="pageNavigator left">
								
									<a href="javascript:void(0);"  onclick="addOrEdit('${bean.questionId}')" title="新增" class="btnGrayS"> 
										<img width="16" src="${basePath}/images/add.png" class="vm">新增</a>
			<!-- 							<a class="btnGrayS" onclick="delItem('${typeid}')"> 
										<img class="vm" style="width: 16px; height: 16px" src="${basePath}/images/delete.png">&nbsp;&nbsp;删除选中 </a> -->
								</div>
								<div class="pageNavigator right">
									<form action="${basePath}/admin/ques/index" method="post">
										<input class="px" name="profile" placeholder="请输入简介查询"
											value="${profile}" /> 
										<input class="px" type="hidden" name="typeid" value="${typeid}" /> 
										<input class="btnGreen" type="submit" value="查询" />
										<a class="btnGray" type="button" href="${base}/admin/ques/type/index">返回</a>	
									</form>
								</div>
							</div>
							<table class="ListProduct Shallow_border_color" border="0"
								cellSpacing="0" cellPadding="0" width="100%">
								<thead>
									<tr>
										<th>编号</th>
										<th>标题</th>
										<th>创建时间</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									<#if page?exists>
									<#list page.recordList as bean>
									<tr>
										 <td valign="middle" align="center">${page.pernum*(page.currentPage-1)+bean_index+1}</td>
										<td>${bean.name?default('')}</td>
										<td>${bean.publish?string("yyyy-MM-dd HH:mm:ss")!''}</td>
										<td align="" center class="norightborder">
										  <a href="${basePath}/admin/ques/saveview?article_id=${bean.id}">修改</a> 
										 <!--  <a href="javascript:removeOne(${bean.id})">删除</a>  -->
										</td>
									</tr>
									</#list>
									</#if>
								</tbody>
							</table>
						</div>
						<#assign formUrl="${basePath}/admin/ques/index?">
						<#include "/include/pagination.html">
					</div>
					<div class="clr"></div>
				</div>
			</div>
		</div>
		<!--底部-->
	</div>
	<!--ad start-->
	<!--ad end-->
	</div>
	</div>
	</div>
	<#include "/include/footer.html"/>
	<script type="text/javascript" src="${basePath}/js/ques/ques.js"></script>
	<script>
	$(function() {
	    $("#checkAll").click(function() {
	         $('input[name="subBox"]').attr("checked",this.checked); 
	     });
	     var $subBox = $("input[name='subBox']");
	     $subBox.click(function(){
	         $("#checkAll").attr("checked",$subBox.length == $("input[name='subBox']:checked").length ? true : false);
	     });
	 });
		function addOrEdit(id){
			var url="${basePath}/admin/ques/saveview";
			if(id!=null && id.length>0){
				url+="&id="+id;
			}
			window.location.href=url;
		}
	</script>
</body>
</html>